<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../../css/bookdetails/detail.css" />
	</head>

	<body>
		<div id="offCanvasContentScroll" class="mui-content mui-scroll-wrapper">
			<div class="mui-scroll">
				<div id="slider" class="mui-slider">
					<div class="mui-slider-group mui-slider-loop">
						<!-- 额外增加的一个节点(循环轮播：第一个节点是最后一张轮播) -->
						<div class="mui-slider-item mui-slider-item-duplicate">
							<a href="#">
								<img src="../../imges/Mask Group28.png" />
							</a>
						</div>
						<!-- 第一张 -->
						<div class="mui-slider-item">
							<a href="#">
								<img src="../../imges/Mask Group28.png" />
							</a>
						</div>
						<!-- 第二张 -->
						<div class="mui-slider-item">
							<a href="#">
								<img src="../../imges/Mask Group27 (1).png" />
							</a>
						</div>
						<!-- 第三张 -->
						<!-- 额外增加的一个节点(循环轮播：最后一个节点是第一张轮播) -->
						<div class="mui-slider-item mui-slider-item-duplicate">
							<a href="#">
								<img src="../../imges/Mask Group28.png" />
							</a>
						</div>
					</div>
					<div class="mui-slider-indicator">
						<div class="mui-indicator mui-active"></div>
						<div class="mui-indicator"></div>
					</div>
				</div>
				<div class="slide">
					<div class="content">
						<div class="header">
							<div class="title">
								<div class="title_name">狼王梦</div>
								<div class="title_read">电子书试读</div>
							</div>
							<div class="introduce">
								大公狼黑桑想当狼王，和母狼紫岚一起想推翻旧狼王，可这天黑桑不幸的陪同野猪丧命于鬼谷中。
								<!--<div class="jiaoyan">阅读教研</div>-->
							</div>
							<div class="price">
								<div class="discount">￥ 18.80</div>
								<div class="costprice">￥25.00</div>
							</div>
						</div>
						<div class="circumstantial">
							<div class="introduction">
								<div class="epitome">内容介绍</div>
								<div class="summary">和匹诺曹在一起，我们会体验一次冒险之旅，同时也与他一起逐渐学会勇敢、诚实、有责任心、爱学习、尊重他人……</div>
							</div>
							<div class="introduction">
								<div class="epitome">编辑推荐</div>
								<div class="summary">卡洛·科洛迪的小木偶皮诺乔，深受全世界的大人和孩子的喜爱。著名翻译家任溶溶先生还原的皮诺乔所经历的离奇故事，既扣人心弦又生动有趣。</div>
							</div>
							<div class="introduction">
								<div class="epitome">作者简介</div>
								<div class="summary">卡洛·科洛迪的小木偶皮诺乔，深受全世界的大人和孩子的喜爱。著名翻译家任溶溶先生还原的皮诺乔所经历的离奇故事，既扣人心弦又生动有趣。</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="operation">
			<div class="purchase">微店购买</div>
			<div class="bookshelf">加入我的书架</div>
		</div>
		<script src="../../js/libs/mui.min.js"></script>
		<script src="../../js/libs/zepto_1.1.3.js"></script>
		<script type="text/javascript">
			mui.init()
			
			var temp = 120
			$(".slide").height($(".content").height() - temp)
			window.onload = function() {
				mui('#offCanvasContentScroll').scroll();
			}
			var scroll = mui('.mui-scroll-wrapper').scroll({
				startY: 0, //初始化时滚动至y
				indicators: false, //是否显示滚动条
				bounce:false
			});
			
			document.querySelector('#offCanvasContentScroll').addEventListener('scroll', function(e) {
				if(scroll.y >= -temp * 2) {
					$(".content").css("top", scroll.y * 0.5)
				} else {
					$(".content").css("top", "-" + temp + "px")
				}
			})
		</script>
	</body>

</html>